//
//  ZDAddressListCell.m
//  ZDPension
//
//  Created by 刘甲奇 on 2017/6/19.
//  Copyright © 2017年 maker. All rights reserved.
//

#import "ZDAddressListCell.h"

@interface ZDAddressListCell ()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;
/**
 <#Description#>
 */
@property(nonatomic, strong) addressDeleteBlock block;

@end

@implementation ZDAddressListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(ZDAddressModel *)model
{
    _model = model;
    self.nameLabel.text = model.true_name;
    self.phoneLabel.text = model.tel_phone;
    self.addressLabel.text = [NSString stringWithFormat:@"%@%@",model.area_info,model.address];
}
- (void)addressDeleteClick:(addressDeleteBlock)block
{
    _block = block;
}
- (IBAction)deleteClick:(UIButton *)sender
{
    ZDLog(@"%s---%d---点击了删除",__func__,__LINE__);
    _block(_model);
}


@end
